package com.yyds.oneservice.service.impl;

import com.yyds.oneservice.pojo.Product;
import com.yyds.oneservice.mapper.ProductMapper;
import com.yyds.oneservice.service.IProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yyds.oneservice.vo.UserProductVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 商品信息 服务实现类
 * </p>
 *
 * @author lxy
 * @since 2022-12-12
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements IProductService {
    @Autowired
    private ProductMapper productMapper;
    @Override
    public List<UserProductVo> findUserProductVo() {

        List<UserProductVo> userProductVo = productMapper.findUserProductVo();
        return userProductVo;
    }
}
